package com.example.demosecurity.common.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataResult {
    private Integer code;
    private String msg;
    private Object data;

    public static DataResult success(String msg){
        return new DataResult(200,msg,null);
    }
}
